ExamPlay Light Logo
Se connecter

Computer Science for IGCSE & O level - Programming (Section 8 - No. 17)

What will this code print? `print "Hello".length()` (Assuming a language where length is a method of strings)
Hello
5
Hello.length
"" (empty string)

Explication

The length method counts the number of characters in the string.

Commentaires (0)

Connectez-vous pour commenter
Publicité
BrainBehindX Inc Logo
©2026; Alimenté par BrainBehindX Inc